package org.sy.lab.Java7并发编程实战.一线程管理.一线程的创建和运行;

public class Main {
	public static void main(String[] args) {
		for(int i=1; i<=10; i++) {
			Calculator1 calculator1 = new Calculator1(i);
			calculator1.start();
			Calculator2 calculator2 = new Calculator2(i);
			Thread thread = new Thread(calculator2);
			thread.start();
		}
	}
}